#include "StdAfx.h"
#include "GameStateWin.h"
extern HWND hWnd;
CGameStateWin::CGameStateWin(void)
{
}

CGameStateWin::~CGameStateWin(void)
{
}
CGameStateWin::CGameStateWin(CGameMain *pGameMain) {
	pGM = pGameMain;
	GameStateID = STATE_WIN;
}
void CGameStateWin::MessageUpdate( int iKey ) {

}
void CGameStateWin::MessagePaint( HDC* pDC ) {
	Graphics g(*pDC);
	g.DrawImage(bmBkg,0,0,500,540);
}
void CGameStateWin::MessageExit() {
	delete bmBkg;
}
void CGameStateWin::MessageEnter (HDC* pDC) {
	PlaySound(L"res\\Music\\victory.wav",NULL, SND_FILENAME | SND_ASYNC);
	bmBkg = new Bitmap(L"res\\Background\\win.jpg");
}